home *** CD-ROM | disk | FTP | other *** search
- Launch a Java development environment from your desktop
- or select it from the task bar if it is already running.
- Then follow the instructions below.
-
- Step 1: Imagine that you are a teacher with three
- students. Write a Java application that prints a grade
- report for your three students' performance on three
- tests. Use a two-dimensional array of doubles to hold the
- grades and a one-dimensional array of Strings to hold the
- students' names. Call this application source file
- Grades.java.
-
- Step 2: Compile this file using javac, and run the
- resulting Grades.class file using the java command.
-
- Step 3: Write a Java applet that will print the default
- values of int short, byte, long, char, double, float,
- and boolean variables to the applet window. Call this
- applet source file DefaultValues.java.
-
- Step 4: Compile this file and write HTML code that will
- embed the applet in a web browser or appletviewer.
-
- Step 5: Load the HTML file into a web browser or
- appletviewer to see the applet run.